# coding=utf-8
from application import app

"""
拦截器配置
"""
from web.interceptors.AuthInterceptor import *

"""
URL配置
"""
from web.controllers.index import route_api_index
from web.controllers.food.Controller import route_api_food
from web.controllers.food_type.Controller import route_api_food_type
from web.controllers.customer.Controller import route_api_customer
from web.controllers.order.Controller import route_api_order
from web.controllers.coupon.Controller import route_api_coupon
from web.controllers.upload import route_upload

app.register_blueprint( route_upload, url_prefix="/api/upload" )
app.register_blueprint( route_api_index, url_prefix="/api")
app.register_blueprint( route_api_food, url_prefix="/api/food")
app.register_blueprint( route_api_customer, url_prefix="/api/customer")
app.register_blueprint( route_api_food_type, url_prefix="/api/food_type")
app.register_blueprint( route_api_order, url_prefix="/api/order")
app.register_blueprint( route_api_coupon, url_prefix="/api/coupon")
